<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>货运车辆管理</title>
</head>
<body>
	<div> 
	<form action="${pageContext.request.contextPath}/addTruck.action" method="post">
		<table>
			<tr>
				<td>车牌号:<input type="text" name="truckID"></td>
				<td>载重:<input type="text" name="truckWeight"></td>
			</tr>
			<tr>
				<td>车长:<input type="text" name="truckLength"></td>
				<td>运输路线:
					<select name="routeID" >
						<option></option>
						<c:forEach items="${routeList}" var="order">
							<option value="${order.routeID }">${order.start }~${order.end}</option>
						</c:forEach>
					</select>
				</td>
			</tr>
			<tr>
				<td><input type="submit" value="添加"></td>
				<td><input type="reset"  value="重置"></td>
			</tr>
		</table>
	</form>
	</div>
		<table>
			<tr>
				<td>车辆ID</td>
				<td>车长</td>
				<td>载重</td>
				<td>起始地</td>
				<td>目的地</td>
			</tr>
			<tr>
				
			</tr>
		</table>
	<div>
		
	</div>
</body>
</html>